<?php
	require_once(realpath(dirname(__FILE__)) . "/Baseobj.class.php");

	// Classe Activite

	// id --> identifiant activite
	// desc --> nom de l'activité

	class Caracdispdesc extends Baseobj{

		var $id;
		var $caracdisp;
		var $lang;
		var $titre;
		var $classement;


		const TABLE="caracdispdesc";
		var $table=self::TABLE;

		var $bddvars = array("id", "caracdisp", "lang", "titre", "classement");

		function __construct($id = 0){
			parent::__construct();

			if($id > 0)
 			  $this->charger($id);
		}

		function charger($id, $lang=1){
			return $this->getVars("select * from $this->table where id=\"$id\" and lang=\"$lang\"");

		}

		function charger_caracdisp($caracdisp, $lang=1){
			if($lang==0 || $lang=="") $lang=1;

			return $this->getVars("select * from $this->table where caracdisp=\"$caracdisp\" and lang=\"$lang\"");

		}

	}

?>